import request from '@/utils/request'


export function getEmpSalaryList(query) {
  return request({
    url: '/system/employeeSalary/getEmpSalaryList',
    method: 'get',
    params: query
  })
}


export function addEmpSalary(data) {
  return request({
    url: '/system/employeeSalary/addEmpSalary',
    method: 'post',
    data: data
  })
}


export function getEmpSalaryListByEmpId(empId) {
  return request({
    url: '/system/employeeSalary/getEmpSalaryListByEmpId/' + empId ,
    method: 'get'
  })
}


export function getEmpSalaryItemsListByEmpId(empId) {
  return request({
    url: '/system/employeeSalary/getEmpSalaryItemsListByEmpId/' + empId,
    method: 'get'
  })
}

export function getEmpSalaryItemsListByEsId(esId) {
  return request({
    url: '/system/employeeSalary/getEmpSalaryItemsListByEsId/' + esId,
    method: 'get'
  })
}


export function statisticsEmpNum() {
  return request({
    url: '/system/employeeSalary/statisticsEmpNum',
    method: 'get'
  })
}
